package haoyc.entity;

import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author Memory
 * @version 1.0
 * @date 2021/11/23
 */

@Data
@ToString
public class Response implements Serializable {

    private String code;
    private String msg;

    public Response(String code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public Response() {}

    public boolean isSuccess(){
        if ("200".equals(this.code)) {
            return true;
        }
        return false;
    }
}
